<?php

class Damages_Methods_Data_ResponseStatus {

  /**
   *
   * @var boolean 
   */
  public $status;

  /**
   *
   * @var boolean 
   */
  public $auth;

  /**
   *
   * @var Damages_Methods_Data_User 
   */
  public $user;

  public function __construct($status = true) {
    $this->status = $status;
    $this->auth = Damages_Auth::getInstance()->isAuth();
    $this->user = (Damages_Auth::getInstance()->getUser() instanceof DamagesUsers) ? new Damages_Methods_Data_User(Damages_Auth::getInstance()->getUser()) : null;
  }

}